<?php

namespace PAT\ProductBundle\Form;

use PAT\ProductBundle\Entity\Category;

use PAT\ProductBundle\PATProductBundle;

use Symfony\Component\Form\AbstractType;
//use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormTypeInterface;
use Symfony\Component\Form\FormBuilderInterface;

class CategoryRechercheForm extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {        
        
        $builder->add('category', 'entity', array(
                        'label' => 'Choix de la catgorie',
        		'class' => 'PATProductBundle:Category',
        		'property' => 'name',
        ));
        
    }
    
    public function getName()
    {        
        return 'categoryrecherche';
    }
}